import Layout from '@/layout'

const videoRouter = {
  path: '/video',
  component: Layout,
  redirect: '',
  name: 'Video',
  meta: {
    title: '视频管理',
    icon: '财务管理'
  },
  children: [
    {
      path: 'video',
      component: () => import('@/views/videomanagement/index'),
      name: 'Video',
      meta: { title: '视频审核', icon: '订单管理' },
      children: [
        {
          path: 'videoList',
          component: () => import('@/views/videomanagement/videoList'),
          name: 'VideoList',
          meta: { title: '视频列表', noCache: true }
        },
        {
          path: 'videoBlackList',
          hidden: true,
          component: () => import('@/views/videomanagement/blackList'),
          name: 'VideoBlackList',
          meta: { title: '黑名单', noCache: true }
        },
        {
          path: 'contentList',
          hidden: true,
          component: () => import('@/views/videomanagement/contentList'),
          name: 'ContentList',
          meta: { title: '内容管理', noCache: true }
        },
        {
          path: 'videoWorks',
          hidden: true,
          component: () => import('@/views/videomanagement/videoWorks'),
          name: 'videoWorks',
          meta: { title: '作品列表', noCache: true }
        }
      ]
    }
  ]
}
export default videoRouter
